/******************************************************************************/
/* @ All Rights Reserved Copyright (C) 2014 broada,Ltd.                       */
/*                                                                            */
/*  NAME      = sybase_common.h                                               */
/*  NOTE      =                                                               */
/*  DATE      = 2014/09/30 by zhengxd                                         */
/******************************************************************************/
#ifndef _SYBASE_COMMON_H_
#define _SYBASE_COMMON_H_

#include "sybase_core.h"

#define SYBASE_CURSOR    0
#define SYBASE_DYNAMIC   1

void sybase_free(char **pp_buffer);

void sybase_altfmt_node_free(Frlist_node *p_st_node);

void sybase_init_fragment(L7_fragment_sybase *p_st_fragment);

void sybase_destroy_fragment(L7_fragment_sybase **pp_st_fragment);

Frreport_body_data* sybase_new_report_body(Conntrack *p_st_conn
                                          , L7session_sybase *p_st_sess);

L7_req_sybase* sybase_create_request(uint8_t u8_packet_type);

void sybase_destroy_session(L7session_sybase **pp_st_sess);

void sybase_int_request(L7_req_sybase *p_st_req);

void sybase_destroy_request(L7_req_sybase **pp_st_req);

void sybase_int_response(L7_resp_sybase *p_st_resp);

void sybase_destroy_response(L7_resp_sybase **pp_st_resp);

void sybase_destroy_curr_info(L7session_sybase_private *p_st_private);

int sybase_add_statement(L7session_sybase_private *p_st_private
                         , int i_cursor_dynamic
                         , int i_req_resp);

#endif
